home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / share / aclocal-1.4 / missing.m4 < prev    next >
Encoding:
M4 Source File  |  2005-10-16  |  699 b   |  19 lines

  1. ## --------------------------------------------------------- ##
  2. ## Fake the existence of programs that GNU maintainers use.  ##
  3. ## --------------------------------------------------------- ##
  4. dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY)
  5. dnl The program must properly implement --version.
  6. AC_DEFUN([AM_MISSING_PROG],
  7. [AC_MSG_CHECKING(for working $2)
  8. # Run test in a subshell; some versions of sh will print an error if
  9. # an executable is not found, even if stderr is redirected.
  10. # Redirect stdin to placate older versions of autoconf.  Sigh.
  11. if ($2 --version) < /dev/null > /dev/null 2>&1; then
  12.    $1=$2
  13.    AC_MSG_RESULT(found)
  14. else
  15.    $1="$3/missing $2"
  16.    AC_MSG_RESULT(missing)
  17. fi
  18. AC_SUBST($1)])
  19.